//
//  UIButton+Extension.h
//  服装
//
//  Created by mac on 16/4/10.
//  Copyright © 2016年 安安. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (Extension)
+ (UIButton *) leftButtonWithFrame:(CGRect)frame backGroundCorlor:(UIColor *)buttonBackGroungCorlor title:(NSString *)title titleForState:(UIControlState)titleForStateState enable:(BOOL)enabled titleCorlor:(UIColor *)titleCorlor titleCorlorForState:(UIControlState)titleCorlorForState titleLableFont:(CGFloat) font;

+ (UIButton *) rightButtonWithFrame:(CGRect)frame backGroundCorlor:(UIColor *)buttonBackGroungCorlor title:(NSString *)title titleForState:(UIControlState)titleForStateState enable:(BOOL)enabled titleCorlor:(UIColor *)titleCorlor titleCorlorForState:(UIControlState)titleCorlorForState titleLableFont:(CGFloat) font ;

+ (UIButton *) buttonWithFrame:(CGRect)frame title:(NSString *)title titleForState:(UIControlState)titleForStateState  titleCorlor:(UIColor *)titleCorlor titleCorlorForState:(UIControlState) titleCorlorForState ;


+ (UIButton *) buttonWithFrame:(CGRect)frame image:(NSString *)image imageForState:(UIControlState)imageForStateState;

- (void)centerImageAndTitle:(float)space;
- (void)centerImageAndTitle;

@end
